package com.zhuang.designpattern.decorator;

/**
 * description: Test
 * date: 2022/9/18 10:44
 * author: Zhuang
 * version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        LoginSsoDecorator ssoDecorator = new LoginSsoDecorator(new SsoInterceptor());
        String request = "1successhuahua";
        boolean success = ssoDecorator.preHandle(request, "ewcdqwt40liuiu", "t");
        System.out.println("登录校验：" + request + (success ? " 放行" : " 拦截"));
    }
}
